﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package gaia.moga.assets {
    import alecmce.ui.*;
    import com.gaiaonline.monster.model.*;
    import gaia.moga.app.*;
    import alecmce.ui.pool.*;

    public class WorldAssetsFactory {

        public var config:AppConfig;
        public var model:ApplicationModel;
        private var pool:AssetSingletons;

        public function WorldAssetsFactory(){
            this.pool = new AssetSingletons();
        }
        public function zoneMap(_arg1:uint):Asset{
            var _local3:String;
            var _local2:String = (((_arg1 < 10)) ? "0" : "" + _arg1.toString());
            switch (this.model.special){
                case ApplicationModel.SNOW:
                case ApplicationModel.SNOWING:
                    _local3 = (("assets/world/maps/snowy_" + _local2) + ".swf");
                    break;
                default:
                    _local3 = (("assets/world/maps/map_" + _local2) + ".swf");
                    break;
            };
            _local3 = this.config.parseURL(_local3);
            var _local4:Asset = this.pool.require(_local3);
            return (_local4);
        }

    }
}//package gaia.moga.assets 
